package com.eee.xiang.market.dao.mapper;

import com.eee.xiang.market.beans.TCargo;
import com.eee.xiang.market.beans.TCargoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import javax.annotation.security.PermitAll;

public interface TCargoMapper {
    long countByExample(TCargoExample example);

    int deleteByExample(TCargoExample example);

    int deleteByPrimaryKey(String cargoId);

    int insert(TCargo record);

    int insertSelective(TCargo record);

    List<TCargo> selectByExample(TCargoExample example);

    TCargo selectByPrimaryKey(String cargoId);

    int updateByExampleSelective(@Param("record") TCargo record, @Param("example") TCargoExample example);

    int updateByExample(@Param("record") TCargo record, @Param("example") TCargoExample example);

    int updateByPrimaryKeySelective(TCargo record);

    int updateByPrimaryKey(TCargo record);

    @Update("update t_cargo set delete_flag = 1 where cargo_id = #{cargoId}")
    int delCargo(@Param("cargoId") String cargoId);
}